﻿using System.Collections.Generic;

namespace Framework.Sql
{
    public abstract class SqlBuilderBase
    {
        protected readonly string ConnectionString;
        protected readonly string TableName;
        protected readonly List<string> Conditions = new List<string>();

        public void AddCondition(string conditionSql)
        {
            Conditions.Add(conditionSql);
        }

        protected SqlBuilderBase(string connectionString, string tableName)
        {
            ConnectionString = connectionString;
            TableName = tableName;
        }
    }
}